<?php

session_start();
if (isset($_POST['video'])) {
  $video = $_POST['video'];
  $_SESSION['video'] = $video;
  $_SESSION['video_name'] = str_replace("_", " ", $video);
  echo "{\"result\":1}";
} else {
  echo "{\"result\":0}";
}
?>
